<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title></title>
    <link href="libs/weui/weuix.min.css" rel="stylesheet" />
    <link href="libs/swipe/swiper.min.css" rel="stylesheet" />
    <link href="css/common.css" rel="stylesheet"/>
    <link href="css/search.css" rel="stylesheet" />
</head>
<body class="page-bg">
    <div class="weui_tab tab-bottom">
    <div class="weui_btn_warn weui-header search">
        <div class="weui-header-left">
            <a href="javascript:window.history.go(-1);" class="icon icon-109 f-white"></a>
        </div>
        <form action>
        <h1 class="search-wraper">
            <div class="weui_search_inner"><i class="weui_icon_search"></i>
                    <input type="search" class="search_input" id="weui_search_input" placeholder="关键字" autofocus="autofocus" autocomplete="off" />
            </div>
        </h1>
        <div class="weui-header-right">
           <a class="f-white" id="btn-search">搜索</a>
        </div>
        </form>
    </div>
    <div class="weui_tab_bd search_bg">
        <div class="header">
            <div class="sortbox">
                <div class="weui_grids grids-small">
                    <a href="javascript:;" class="grid" id="getCats">
                        <p class="weui_grid_label">
                            <span class="txt">全类别</span>
                            <i class="icon icon-drop"></i>
                        </p>
                    </a>
                    <a href="javascript:;" class="grid" id="getResource">
                        <p class="weui_grid_label">
                            <span class="txt">来源</span>
                            <i class="icon icon-drop"></i>
                        </p>
                    </a>
                    <a href="javascript:;" class="grid" id="slastest">
                        <p class="weui_grid_label">
                            <span class="txt">最新</span><i class="icon"></i>
                        </p>
                    </a>
                    <a href="javascript:;" class="grid" id="sprice_sort">
                        <p class="weui_grid_label">
                            <span class="txt">价格</span>
                            <svg class="icon icon-sortsvg" aria-hidden="true">
                                <use xlink:href="#icon-sort-small1"></use>
                            </svg>
                        </p>
                    </a>
                </div>
                <input type="hidden" id="type_from" value="0" />
                <input type="hidden" id="type_type" value="0" />
                <input type="hidden" id="type_categoryId"/>
                <input type="hidden" id="type_orderby" value="0"/>
                <input type="hidden" id="type_keywords" value="" />
            </div>
        </div>
        <div class="shop-list">
            <div class="weui_msg_box"><p>没有数据</p></div>
        </div>
    </div>
</div>
</body>

<script type="text/html" id="search_tpl">
    {{if result.length==0}}
    <div class="weui_msg_box"><p>现在还没有数据</p></div>
    {{/if}}
    {{each result value index}}
    <div class="shop-item" categoryid="{{result[index].categoryId}}">
        <div class="shop-head">
            <div class="title">{{result[index].categoryName}}</div>
            <span class="fr">￥{{result[index].price}}</span>
        </div>
        <div class="swiper-container">
            <div class="swiper-wrapper">
                {{each result[index].images value j}}
                <div class="swiper-slide">
                    <a href="detail.html?id={{result[index].id}}"><img data-img="{{result[index].images[j].smallUrl}}" src="{{result[index].images[j].smallUrl}}" /></a>
                </div>
                {{/each}}
            </div>
        </div>
        <div class="des-info">
            {{result[index].desc}}
        </div>
        <div class="fav-message">
            <a href="javascript:;">收藏<em>{{result[index].favoriteCount}}</em></a><a href="javascript:;">留言<em>{{result[index].commentCount}}</em></a>
        </div>
    </div>
    {{/each}}
</script>
<script type="text/javascript" src="libs/zepto/zepto.min.js"></script>
<script type="text/javascript" src="libs/swipe/swiper.min.js"></script>
<script type="text/javascript" src="libs/common/picker.js"></script>
<script type="text/javascript" src="libs/common/updown.js"></script>
<script type="text/javascript" src="libs/common/lazyimg.js"></script>
<script type="text/javascript" src="libs/artTemplate/template.js"></script>
<script type="text/javascript" src="libs/common/select.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/iconfont.js"></script>
<script type="text/javascript" src="components/search.js" ></script>

</html>